package com.party.util.easyexcel.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * excel表头
 *
 * @author gcx
 * @date 2020/2/14
 */
public class ExcelHeader {
    private List<String> keys = new ArrayList<>();
    private List<List<String>> headers = new ArrayList<>();

    public ExcelHeader put(String key, String header) {
        keys.add(key);
        headers.add(Collections.singletonList(header));
        return this;
    }

    public List<String> getKeys() {
        return keys;
    }

    public List<List<String>> getHeaders() {
        return headers;
    }
}

